<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>规则信息管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%@include file="../../common/Include_input_head.jsp" %>
    <script type="text/javascript" src="${basePath }/component/datepicker/WdatePicker.js"></script>
    <!--富文本编辑-->
    <script src="${basePath }/kindeditor/kindeditor-min.js"></script>
    <script src="${basePath }/kindeditor/config_admin.js"></script>
    <!--富文本编辑end-->
    <script type="text/javascript">
        detailPageStyle();
        function doSave() {
            // 同步数据后可以直接取得textarea的value
            editor.sync();
            if (isValidateForm()) {
                super_doSave();
            }
        }

        /******************富文本编辑器初始化*******************/
        $(function () {
            editor = KindEditor.create('textarea[id="nr"]', {
                resizeType: 1,
                allowPreviewEmoticons: true,
                allowImageUpload: false,
                allowFileManager: false,
                syncType: 'form',
                items: [
                    'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                    'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                    'insertunorderedlist', '|', 'emoticons', 'link']
            });

        });
        /******************富文本编辑器初始化*******************/
    </script>
</head>

<body style="text-align:center;">

<s:form name="theform" method="post" theme="simple" enctype="multipart/form-data">
    <s:hidden name="regulation.wid" id="wid"/>
    <div class="box1" panelWidth="100%">
        <fieldset>
            <legend>规则信息</legend>
            <table class="tableStyle" transMode="true" footer="normal">
                <tr>
                    <td width="10%" align="right" nowrap="nowrap">业务规则：</td>
                    <td width="90%"  align="left">
                        <s:textfield name="regulation.bt" cssStyle="width: 600px;"/>
                        <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right">业务规则梳理：</td>
                    <td align="left">
                        <s:textarea name="regulation.nr" id="nr" cssStyle="width: 600px;height: 400px"/>
                    </td>
                </tr>

                <tr>
                    <td align="right"  nowrap="nowrap">涉及岗位 ：</td>
                    <td align="left">
                            <s:textfield name="regulation.sjgw" cssStyle="width: 600px;"/>
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">规则配置 ：</td>
                    <td align="left">
                            <s:textfield name="regulation.gzpzurl" cssStyle="width: 600px;"/>
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">规则描述  ：</td>
                    <td align="left">
                            <s:textfield name="regulation.gzms" cssStyle="width: 600px;"/>
                </tr>

                <tr>
                    <td align="right"  nowrap="nowrap">需求规则上传：</td>
                    <td align="left">
                        <input type="file" class="default" name="fj">
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">对应制度上传：</td>
                    <td align="left">
                        <input type="file" class="default" name="dyzdsc">
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">原始需求附件：</td>
                    <td align="left">
                        <input type="file" class="default" name="ysxqfj">
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">原始需求附件说明：</td>
                    <td align="left">
                            <s:textfield name="regulation.ysxqfjsm" cssStyle="width: 600px;"/>
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">规章制度附件：</td>
                    <td align="left">
                        <input type="file" class="default" name="gzzdfj">
                </tr>
                <tr>
                    <td align="right"  nowrap="nowrap">规章制度附件说明：</td>
                    <td align="left">
                            <s:textfield name="regulation.gzzdfjsm" cssStyle="width: 600px;"/>
                </tr>
            </table>
        </fieldset>

        <div class="padding_top10">
            <table class="tableStyle" transMode="true">
                <tr>
                    <td colspan="4">
                        <input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()"/>
                        <input type="button" value=" 关 闭 " onclick="parent.closeEntityWindow()"/>
                        <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
						<span id="SystemErrorMessage" style="top: 20px">
							<s:actionerror cssStyle="color:red"/>
							<s:actionmessage cssStyle="color:blue"/>
							<s:fielderror/>
						</span>
                        </s:if>
                    </td>
                </tr>
            </table>
        </div>
    </div>

</s:form>
</body>
</html>
